<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>人事管理系统</title>
  <link rel="stylesheet" type="text/css"
    href="https://cdn.bootcdn.net/ajax/libs/font-awesome/4.6.0/css/font-awesome.min.css">
  <script type="text/javascript">
    eval("${sendmsg}");
  </script>

<title>员工信息修改</title>
</head>
<body>
	<center>
    <div>
      <div>
        <h3>信息修改页</h3>
        <h3 style="color:red;">${mssg}</h3>
        <!-- ${pageContext.request.contextPath }/NoticeUpdateServlet -->
        <form action="${pageContext.request.contextPath }/ntUpdate" method="post">
          <div>
            <input name="id" type="hidden" value="${user.id }">
            <lable form="name">标题：</lable>
            <input type="text" name="title" id="uname" value="${user.title }">
          </div>
          <div>
            <lable form="cardid">内容：</lable>
            <input type="text" name="content" id="userpass" value="${user.content }">
          </div>
          <div>
            <lable form="name">发布日期：</lable>
            <input type="text" name="createdate" id="date" value="${user.createdate }">
          </div>
          <div>
            <lable form="cardid">发布用户：</lable>
            <input type="text" name="userid" id="user" value="${user.userid }">
          </div>
          <br>
          <div>
            <input type="submit" value="提交" onclick="return checkSubmit()">
          </div>
        </form>
      </div>
    </div>
  </center>
  <script type="text/javascript">
    function checkSubmit() {
      var oUname = document.getElementById("uname");
      var oError = document.getElementById("userpass");
      var oDate = document.getElementById("date");
      var oUser = document.getElementById("user");
      var uerror = "";
      if (uname.value.length < 4 || uname.value.length > 1000 || userpass.value.length < 4 || userpass.value.length > 1000 || date.value.length < 4 || date.value.length > 1000 || user.value.length < 1 || user.value.length > 1000) {
        alert("内容长度小于4，且不能为空");
        return false;
      }
      return true;
    }
  </script>
</body>
</html>